var app = getApp();
var zhdomain = app.globalData.zhdomain;
Page({
  data:{
    themes:[]
  },
  onLoad:function(options){
    var that = this;
    wx.request({
        url: zhdomain+'/api/4/themes', 
        header: {
            'content-type': 'application/json'
        },
        success: function (res) {
          var data = res.data;
          that.setData({
            themes:data.others
          })
        },
        complete:function(res){
          if(res.statusCode != 200){
            wx.showModal({
              content: '加载失败请重试[errorCode:'+res.statusCode+']',
              showCancel: false
            });
          }
        }
    })
  }
})